package com.crane.oss.common.bean.request;

import com.crane.common.core.utils.Validator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 *
 * @author tyh
 * @Description 获取验证码请求对象
 *
 */
@Getter
@Setter
@ToString
@ApiModel(description = "获取验证码参数")
public class VerifyCodeRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "手机号码", name = "phone")
    @NotNull(message = "手机号码不能为空")
    @Pattern(regexp = Validator.REGEX_MOBILE, message = Validator.REGEX_MOBILE_MSG)
    private String phone;


}
